<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="<?php echo U(index);?>" method="post">
        <input type="hidden" name="pageCurrent"     value="<?php echo ($pageCurrent); ?>"/>
        <input type="hidden" name="pageSize"        value="<?php echo ($pageSize); ?>"/>
        <input type="hidden" name="orderField"      value="<?php echo ($_REQUEST['orderField']); ?>"/>
        <input type="hidden" name="orderDirection"  value="<?php echo ($_REQUEST['orderDirection']); ?>"/>
        <div class="bjui-searchBar">
            <label>搜索：</label>
            <input type="text" value="<?php echo ((isset($searchname) && ($searchname !== ""))?($searchname):""); ?>" name="searchname" class="form-control" size="10" />&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <a href="<?php echo U(add);?>" class="btn btn-green" data-toggle="dialog" data-width="600" data-height="500">添加用户</a>
            <div class="pull-right">
                <a href="<?php echo U(del);?>" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids" class="btn btn-red">删除选中</a>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">

</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="<?php echo ($pageSize); ?>"><?php echo ($pageSize); ?></option>
                <option value="10">10</option>
                <option value="20">20</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>共<?php echo ($total); ?>条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($total); ?>" data-page-size="<?php echo ($pageSize); ?>" data-page-current="<?php echo ($pageCurrent); ?>"></div>
</div>